<?php 
if(is_object($adc->getCurrentAdBrand()))
{
	$total = count($adc->getAdModels());
	if($total > 1)
	{
		?>
		<div class="grid_16">
			<?php
			$i = 1;
			$j = 1;
			$class == 'alpha';
			$itemsPerCol = intval($total/4)+1;
			echo '<div class="grid_4 left alpha">';
			foreach($adc->getAdModels() as $model)
			{
				if($model->getAdsCount() > 0)
				{
					if(($i%4) == 0)
					{ $class = 'omega'; }
					
					if((($i%4) == 1) || ($i == 1))
					{ $class = 'alpha'; }
				
					if(($j%$itemsPerCol) == 0)
					{ echo '</div><div class="grid_4 left '.$class.'">'; }
					
					$link = $katana->getURL();
					
					if($adc->getCurrentAdCatId() > 0)
					{ $link .= '/adcat/'.$adc->getCurrentAdCatId().'/'; }
					
					$link .= '/adbrand/'.$adc->getCurrentAdBrandId().'/';
					
					$link .= 'model/'.$model->getId().'/';
					
					if(intval($_GET['bt']) > 0)
					{ $link .= '?bt='.intval($_GET['bt']); }
					
					echo '<a href="'.$link.'">'.$txt->truncate($model->getTitle(), 25, '', '').'</a> ('.$model->getAdsCount().')<br />';
					
					$class = '';
					
					if(($j%$itemsPerCol) == 0)
					{ $i++; }
					$j++;
				}
			}
			echo '</div>';
			?>
            <div class="v-space"></div><hr />
		</div>
		<?php
	}
}
?>